package com.scse.bms.service;

import com.scse.bms.entity.PressDO;
import com.scse.bms.mapper.PressMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * @Title: PressServiceImpl
 * @Author: 吴赠禹
 * @Date: 2021/2/23 6:06
 * @Version: 1.0
 * @Description: TODO
 */


@Service
@Transactional(rollbackFor = Exception.class)
public class PressServiceImpl implements PressService {

    @Autowired
    private PressMapper pressMapper;

    @Override
    public List<PressDO> showPress(int count) {
        return pressMapper.getPress(count);
    }
}
